<template>
  <div>
    <el-row>
      <el-col :span="8" v-if="refund.returnImg1!=''">
        <el-image
          style="width: 180px; height: 180px"
          :src="refund.returnImg1"
          :preview-src-list="imags"
          fit="fill"></el-image>
      </el-col>
      <el-col :span="8" v-if="refund.returnImg2!=''">
        <el-image
          style="width: 180px; height: 180px"
          :src="refund.returnImg2"
          :preview-src-list="imags"
          fit="fill"></el-image>
      </el-col>
      <el-col :span="8" v-if="refund.returnImg3!=''">
        <el-image
          style="width: 180px; height: 180px"
          :src="refund.returnImg3"
          :preview-src-list="imags"
          fit="fill"></el-image>
      </el-col>
    </el-row>

  </div>
</template>

<script>
  export default {
    name: "ReturnPicture",
    data() {
      return {
        imags: [],
        refund: {returnImg1: null, returnImg2: null, returnImg3: null}
      }
    },
    methods: {
      getData(id) {
        this.refund = {};
        this.imags = [];
        this.$axios.get("refund.action/" + id)
          .then(res => {
            this.refund.returnImg1 = this.$store.state.path + res.data.returnImg1;
            this.imags.push(this.refund.returnImg1);
            this.refund.returnImg2 = this.$store.state.path + res.data.returnImg2;
            this.imags.push(this.refund.returnImg2);
            this.refund.returnImg3 = this.$store.state.path + res.data.returnImg3;
            this.imags.push(this.refund.returnImg3);
          })
          .catch(err => {
            this.$message.error(err)
          })
      },
      cancel() {
        this.$parent.$parent.dialogVisible2 = false;
      }
    }
  }
</script>

<style scoped>

</style>
